<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  

  
  <title>Hexo</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta property="og:type" content="website">
<meta property="og:title" content="Hexo">
<meta property="og:url" content="https://gitee.com/starsky-grape-with-ice/starsky-grape-with-ice.com/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:locale" content="en_US">
<meta property="article:author" content="John Doe">
<meta name="twitter:card" content="summary">
  
    <link rel="alternate" href="/atom.xml" title="Hexo" type="application/atom+xml">
  
  
    <link rel="icon" href="/favicon.png">
  
  
    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  
<link rel="stylesheet" href="/css/style.css">

<meta name="generator" content="Hexo 5.4.2"></head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">Hexo</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/">Home</a>
        
          <a class="main-nav-link" href="/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="Search"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="https://gitee.com/starsky-grape-with-ice/starsky-grape-with-ice.com"></form>
      </div>
    </div>
  </div>
</header>
      <div class="outer">
        <section id="main">
  
    <article id="post-online" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2023/04/22/online/" class="article-date">
  <time datetime="2023-04-22T14:19:18.000Z" itemprop="datePublished">2023-04-22</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2023/04/22/online/">Online</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h1 id="项目线上地址"><a href="#项目线上地址" class="headerlink" title="项目线上地址"></a>项目线上地址</h1><p>1、移动端-黑马头条项目线上地址：</p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"> http://starsky-grape-with-ice.gitee.io/hmtt</span><br></pre></td></tr></table></figure>

<p>2、PC端-后台文章管理项目线上地址：</p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"> http://starsky-grape-with-ice.gitee.io/vue-event</span><br></pre></td></tr></table></figure>


      
    </div>
    <footer class="article-footer">
      <a data-url="https://gitee.com/starsky-grape-with-ice/starsky-grape-with-ice.com/2023/04/22/online/" data-id="clgs37c400001j4uq65f74j5c" class="article-share-link">Share</a>
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/ProjectsOnline/" rel="tag">ProjectsOnline</a></li></ul>

    </footer>
  </div>
  
</article>


  
    <article id="post-hexo" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2023/04/14/hexo/" class="article-date">
  <time datetime="2023-04-14T07:19:07.000Z" itemprop="datePublished">2023-04-14</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2023/04/14/hexo/">CreateBlog</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h1 id="gitee-hexo博客创建"><a href="#gitee-hexo博客创建" class="headerlink" title="gitee/hexo博客创建"></a>gitee/hexo博客创建</h1><h2 id="本地创建"><a href="#本地创建" class="headerlink" title="本地创建"></a>本地创建</h2><p>(1) 先找个地方建个文件夹</p>
<p>(2) 在文件夹下执行以下命令(第一次建立)</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo-cli -g <span class="comment">//全局安装 hexo</span></span><br><span class="line">hexo init <span class="comment">//初始化hexo模板</span></span><br><span class="line">hexo <span class="keyword">new</span> xxx.<span class="property">md</span> <span class="comment">//然后在blog/source/posts文件夹下查看该xxx.md文档(写一点内容)</span></span><br><span class="line">hexo clean <span class="comment">//清空已有hexo网站文件</span></span><br><span class="line">hexo g <span class="comment">// 依据网页文本与新的CSS样式生成新网站文件</span></span><br><span class="line">hexo s  <span class="comment">//启动本地服务器，可以在localhost:4000查看修改效果</span></span><br></pre></td></tr></table></figure>

<h2 id="远程仓库创建"><a href="#远程仓库创建" class="headerlink" title="远程仓库创建"></a>远程仓库创建</h2><p>(3) 然后建立新仓库，最好是自己个人主页里@后面的用户名</p>
<p>(4) 点击初始化仓库，选择JavaScript语言，后面不用改</p>
<p>(5) 点击设置模板，勾上Readme文件</p>
<p>(6) 点击创建之后，再把该仓库设置成公开(克隆/下载-&gt;复制仓库地址)</p>
<p>(7) 找到文件夹下的_config.yml文件，配置一下文件(用记事本打开)</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"># <span class="variable constant_">URL</span></span><br><span class="line"><span class="attr">url</span>: <span class="attr">https</span>:<span class="comment">//gitee.com/starsky-grape-with-ice/starsky-grape-with-ice.com (仓库地址的.git换成.com)</span></span><br><span class="line"><span class="attr">root</span>: /</span><br><span class="line"></span><br><span class="line"># <span class="title class_">Deployment</span></span><br><span class="line"><span class="attr">deploy</span>:</span><br><span class="line">  <span class="attr">type</span>: git</span><br><span class="line">  <span class="attr">repo</span>: <span class="attr">https</span>:<span class="comment">//gitee.com/starsky-grape-with-ice/starsky-grape-with-ice.git(仓库地址)</span></span><br><span class="line">  <span class="attr">branch</span>: master</span><br></pre></td></tr></table></figure>

<p>(8) 安装git部署插件 </p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo-deployer-git --save </span><br></pre></td></tr></table></figure>

<p>(9) 推送到远程库 </p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo g --d  </span><br></pre></td></tr></table></figure>

<p>(10) 开启page服务-&gt;GiteePages</p>
<p>(11) 在部署目录下直接点击强制启用https，等待生成一个.gitee.io的网站地址(博客地址)，然后点击查看博客</p>
<p>(12) 以后每次在blog/post/xxx.md文件下修改博客后，重新执行以下命令(在blog根目录下执行)</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">hexo clean</span><br><span class="line">hexo g</span><br><span class="line">hexo s <span class="comment">//可执行可不执行</span></span><br><span class="line">hexo g --d</span><br></pre></td></tr></table></figure>

<p>(13) 然后远程仓库手动刷新page服务-&gt;点击强制启用https下面的更新按钮，重新生成网站地址，然后点击查看博客</p>

      
    </div>
    <footer class="article-footer">
      <a data-url="https://gitee.com/starsky-grape-with-ice/starsky-grape-with-ice.com/2023/04/14/hexo/" data-id="clgs37c3v0000j4uqclob79do" class="article-share-link">Share</a>
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/hexo/" rel="tag">hexo</a></li></ul>

    </footer>
  </div>
  
</article>


  


</section>
        
          <aside id="sidebar">
  
    

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tags</h3>
    <div class="widget">
      <ul class="tag-list" itemprop="keywords"><li class="tag-list-item"><a class="tag-list-link" href="/tags/ProjectsOnline/" rel="tag">ProjectsOnline</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/hexo/" rel="tag">hexo</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tag Cloud</h3>
    <div class="widget tagcloud">
      <a href="/tags/ProjectsOnline/" style="font-size: 10px;">ProjectsOnline</a> <a href="/tags/hexo/" style="font-size: 10px;">hexo</a>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archives</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2023/04/">April 2023</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Recent Posts</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2023/04/22/online/">Online</a>
          </li>
        
          <li>
            <a href="/2023/04/14/hexo/">CreateBlog</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      &copy; 2023 John Doe<br>
      Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>
    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>


  
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css">

  
<script src="/fancybox/jquery.fancybox.pack.js"></script>




<script src="/js/script.js"></script>




  </div>
</body>
</html>